package com.danny.mapper;

import com.danny.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface UserMapper {

    List<User>  queryUser(Map<String ,Object> map);

    int queryUserCount(String userName);

    List<User> queryAllUser();

    int addUser(User user);

    int updateUser(User user);

    int deleteUserById(int userId);

    List<User> queryLimit(Map<String,Object> map);

    int pageCount();

    List<User>queryLimitHasInput(Map<String,Object> map);
}
